import * as API from '../axios';
import * as util from "@/common/util";
export default {



  //收益提现记录
  getWithdrawList: (params, page) => {
    const url = util.replacePageNumAndSize(`/manage/withdraws/record/{pageNum}/{pageSize}`, page)
    return API.axiosGetAPI(url, params);
  },

  //商家代理提现审核(提交)
  commit: (url, params) => {
    return API.axiosPATCHAPI(url, params);
  },

  //分成明细列表
  getBrokeragesList: (params, page) => {
    const url = util.replacePageNumAndSize(`/manage/brokerages/{pageNum}/{pageSize}`, page)
    return API.axiosGetAPI(url, params)
  },

  //财务概览-订单营收-导出
  getOrderExcel: (params) => {
    const headers = {
      'content-Type': 'application/x-www-form-urlencoded',
      'lang-key': 'exports'
    }
    return API.axiosGetAPI(`/manage/excel/export/order-revenue?rangeTime=${params.rangeTime}&search=${params.search}&variableTitleHead=${params.variableTitleHead}`, null, headers, {
      responseType: 'blob'
    })
  },

}